#include "stdafx.h"
#include "DiamondSquareFactory.h"

#include "..\Generators\DiamondSquare.h"
#include "../../../Framework/Toolkit.h"

using namespace Framework;

namespace MyGame {

DiamondSquareFactory::DiamondSquareFactory(void) {
}

DiamondSquareFactory::~DiamondSquareFactory(void) {
}

Generator* DiamondSquareFactory::Generate() const {
    DiamondSquare* diamondSquare = new DiamondSquare();
    diamondSquare->SetBlend((FLOAT)Toolkit::RandomFloat());
    diamondSquare->SetDisplacement((FLOAT)Toolkit::RandomFloat());
    diamondSquare->SetMidpointDisplacement((FLOAT)Toolkit::RandomFloat());
    return diamondSquare;
}

}
